<?php defined('InNcPHP') or exit('Access Invalid!');?>
<body>
<!--商品轮播-->
<div class="swiper-container" style="height: 9.1rem;">
    <div class="swiper-wrapper">
        <?php foreach($output['store_product_images'] as $k => $v){ ?>
            <div class="swiper-slide"><img src="<?php echo URL_DATA;?>/upload/store_product/<?php echo $v['image_path']; ?>" style="height: 9.1rem;" /></div>
        <?php } ?>
    </div>
    <div class="swiper-pagination"></div>
</div>
<!--商品信息-->
<div class="shop-detail">
    <p class="text-nowrap2">
        <!--                <span class="sort-choose">热销</span>-->
        <?php echo $output['store_product']['product_name']  ?></p>
    <b class="orange"><small>¥</small><?php echo $output['store_product']['product_price']  ?>
        <!--                <span class="sort-choose">限时促销</span>-->
    </b>
    <a>¥<?php echo $output['store_product']['product_marketprice']  ?></a>
    <span class="fr"><?php echo $output['store_product']['product_salenum']?>人已付款</span>
</div>
<div class="dark-line"></div>
<!--互推套餐组合-->
<div class="push-package">
    <h2>套餐组合</h2>
    <ul class="push-package-list">
        <?php echo $output['store_product']['product_description']  ?>
    </ul>
</div>
<div class="dark-line"></div>
<!--商品评价-->
<div class="assess">
    <div class="assess-title">
        <p>评价</p><span class="fr">共<?php echo $output['ping_count'] ?>条评价<i class="iconfont icon-back"></i></span>
    </div>
    <ul class="assess-list">
        <?php if(!empty($output['store_product_ping_list'])){ ?>
            <?php foreach($output['store_product_ping_list'] as $k => $v){ ?>
                <li>
                    <a>
                        <span><?php echo $v['member_name']?>：</span>
                        <?php  for($x=0; $x<$v['star']; $x++) { ?>
                            <i class="iconfont icon-star"></i>
                        <?php } ?>
                        <time class="fr"><?php echo $v['addtime']; ?></time>
                        <p class="text-nowrap1"><?php echo $v['content']; ?></p>
                    </a>
                </li>
            <?php } ?>
            <li>
                <div class="more-assess">
                    <a>查看全部评价</a>
                </div>
            </li>
        <?php }else{?>

        <?php }?>
    </ul>
</div>
<div class="dark-line"></div>
<div class="shop-detail-pic">
    <div class="detail-title">
        <p>商品详情</p><span>Product details</span>
    </div>

    <div>
        <?php echo $output['store_product']['product_content'];?>
    </div>

</div>
<!--返回顶部-->
<i class="iconfont icon-top"></i>

<script>
    var mySwiper = new Swiper('.swiper-container', {
        autoplay: 3000,
        loop: true,
        // 如果需要分页器
        pagination: '.swiper-pagination',
        width: window.innerWidth,
    });
    var swiper = new Swiper('.swiper-container1', {
        pagination: '.swiper-pagination',
        slidesPerView: 2,
        paginationClickable: true,
        prevButton: '.swiper-button-prev',
        nextButton: '.swiper-button-next',
        spaceBetween: 0
    });
</script>

